# 设置 Claude API 到 Kimi 的别名
alias set_claude_kimi='export ANTHROPIC_BASE_URL="https://api.moonshot.cn/anthropic"; export ANTHROPIC_AUTH_TOKEN="<Kimi API Key>"; export ANTHROPIC_MODEL="kimi-k2-0711-preview"; export ANTHROPIC_SMALL_FAST_MODEL="kimi-k2-0711-preview"; unset ANTHROPIC_API_KEY; echo "Claude API 已设置为 Kimi 配置。"'

# 设置 Claude API 到 SiliconFlow 的别名
alias set_claude_silicon_kimi='export ANTHROPIC_BASE_URL="https://api.siliconflow.cn/"; export ANTHROPIC_API_KEY="sk-cklqyhczirybvkwlwwohnyewoaxjhgblogjuzjmvpchffkbd"; export ANTHROPIC_MODEL="Pro/moonshotai/Kimi-K2-Instruct-0905"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 SiliconFlow 平台 kimi-K2 模型配置。"'
alias set_claude_silicon_ds='export ANTHROPIC_BASE_URL="https://api.siliconflow.cn/"; export ANTHROPIC_API_KEY="sk-cklqyhczirybvkwlwwohnyewoaxjhgblogjuzjmvpchffkbd"; export ANTHROPIC_MODEL="Pro/deepseek-ai/DeepSeek-V3.1"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 SiliconFlow 平台 deepseek V3.1 模型配置。"'
alias set_claude_silicon_qwen='export ANTHROPIC_BASE_URL="https://api.siliconflow.cn/"; export ANTHROPIC_API_KEY="sk-cklqyhczirybvkwlwwohnyewoaxjhgblogjuzjmvpchffkbd"; export ANTHROPIC_MODEL="Qwen/Qwen3-Coder-480B-A35B-Instruct"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 SiliconFlow 平台 QWen3 模型配置。"'

# 清空 Claude API 变量的别名
alias unset_claude='unset ANTHROPIC_BASE_URL; unset ANTHROPIC_API_KEY; unset ANTHROPIC_MODEL; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 变量已清空。"'

# 输出 Claude API配置信息
alias echo_claude_api_info='echo ANTHROPIC_BASE_URL=$ANTHROPIC_BASE_URL; echo ANTHROPIC_AUTH_TOKEN=$ANTHROPIC_AUTH_TOKEN; echo ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY; echo ANTHROPIC_MODEL=$ANTHROPIC_MODEL; echo ANTHROPIC_SMALL_FAST_MODEL=$ANTHROPIC_SMALL_FAST_MODEL'

# 设置 Claude API 到 Deepseek官方平台 的别名
alias set_claude_ds='export ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"; unset ANTHROPIC_API_KEY; export ANTHROPIC_AUTH_TOKEN="<Deepseek API Key>"; export ANTHROPIC_MODEL="deepseek-chat"; export ANTHROPIC_SMALL_FAST_MODEL="deepseek-chat"; echo "Claude API 已设置为 Deepseek官方平台。"'

# 设置 Claude 模型为 AIHubMix 平台 的别名
alias set_claude_aihub_gemini_pro='export ANTHROPIC_BASE_URL="https://aihubmix.com"; export ANTHROPIC_API_KEY="sk-GCnUYDmQuIbSjSpDC0Ec7eFf0820402f91A9A83dFfC34569"; export ANTHROPIC_MODEL="gemini-2.5-pro"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 AIHubMix 平台 gemini pro 模型配置。"'
alias set_claude_aihub_gemini_flash='export ANTHROPIC_BASE_URL="https://aihubmix.com"; export ANTHROPIC_API_KEY="sk-GCnUYDmQuIbSjSpDC0Ec7eFf0820402f91A9A83dFfC34569"; export ANTHROPIC_MODEL="gemini-2.5-flash"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 AIHubMix 平台 gemini flash 模型配置。"'
alias set_claude_aihub_grok='export ANTHROPIC_BASE_URL="https://aihubmix.com"; export ANTHROPIC_API_KEY="sk-GCnUYDmQuIbSjSpDC0Ec7eFf0820402f91A9A83dFfC34569"; export ANTHROPIC_MODEL="grok-4"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 AIHubMix 平台 grok 模型配置。"'
alias set_claude_aihub_grok_code='export ANTHROPIC_BASE_URL="https://aihubmix.com"; export ANTHROPIC_API_KEY="sk-GCnUYDmQuIbSjSpDC0Ec7eFf0820402f91A9A83dFfC34569"; export ANTHROPIC_MODEL="grok-code-fast-1"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 AIHubMix 平台 grok code 模型配置。"'
alias set_claude_aihub_gpt='export ANTHROPIC_BASE_URL="https://aihubmix.com"; export ANTHROPIC_API_KEY="sk-GCnUYDmQuIbSjSpDC0Ec7eFf0820402f91A9A83dFfC34569"; export ANTHROPIC_MODEL="gpt-5-codex"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 AIHubMix 平台 gpt5 模型配置。"'
alias set_claude_aihub_claude='export ANTHROPIC_BASE_URL="https://aihubmix.com"; export ANTHROPIC_API_KEY="sk-GCnUYDmQuIbSjSpDC0Ec7eFf0820402f91A9A83dFfC34569"; export ANTHROPIC_MODEL="claude-opus-4-1-20250805"; unset ANTHROPIC_AUTH_TOKEN; unset ANTHROPIC_SMALL_FAST_MODEL; echo "Claude API 已设置为 AIHubMix 平台 claude 模型配置。"'


ShowClaudeHelp()
{
	echo "当前已有模型及激活命令为："
	echo "SiliconFlow 平台 Kimi     --- set_claude_silicon_kimi"
	echo "SiliconFlow 平台 Deepseek --- set_claude_silicon_ds"
	echo "SiliconFlow 平台 QWen     --- set_claude_silicon_qwen"
	echo "--------------------------"
	echo "AIHubMix    平台 Gemini   --- set_claude_aihub_gemini_pro"
	echo "AIHubMix    平台 Gemini   --- set_claude_aihub_gemini_flash"
	echo "AIHubMix    平台 Grok     --- set_claude_aihub_grok"
	echo "AIHubMix    平台 Grok     --- set_claude_aihub_grok_code"
	echo "AIHubMix    平台 GPT5     --- set_claude_aihub_gpt"
	echo "AIHubMix    平台 Claude   --- set_claude_aihub_claude"
	echo "可以使用以下方式查看/修改claude设置"
	echo "echo_claude_api_info"
	echo "unset_claude"
}

alias claude-help=ShowClaudeHelp

echo  "--------------- claude activate -------------"
echo ""
source ${cmd_path}/setting_claude.sh
claude-help
set_claude_aihub_claude
echo  "--------------- claude default using claude -------------"
echo  "--------------- claude activate             -------------"
